<?php
header("Content-Type: text/html; charset=ISO-8859-1",true);
if(!isset($_SESSION))session_start();
if(!isset($_SESSION['usuario'])){
	session_destroy();
	header("location:index.php"); exit;
	}

include 'classes/classeCCP.php';
echo "<center><div style=cursor:pointer><span onclick=window.close()>Fechar Janela</span></div></center>";
$id_conteudo = $_GET[id_c];
$pasta = $_POST[pasta];
//var_dump($_SESSION);

$ccp = new classeCCP();

if ($_GET[acao] == "copia")
    $ccp->destino('copiar');
elseif ($_GET[acao] == "excluir")
    $ccp->excluir($id_conteudo);
elseif ($_GET[acao] == "mover")
    $ccp->destino('mov');




if ($_GET[acao] == 'copiar')
    $ccp->copiar($pasta, $_GET[idcon]);
elseif ($_GET[acao] == 'mov')
    $ccp->mover($pasta, $_GET[idcon]);

?>
